update of getchild to use the correct set of coordinates

getchild is now corrected. this code has a lot of printout as there is
some weird stuff going on with the children