well the thing is that this is initial code which is going to grow in length. so i need to define sub routines clearly in case i leave the programmer leaving me can understand the code easily.
plus can u just tell how u are passing the arguments to the routines.
can u just give a snippet of how it is going to work in the while loop