bug fixed in getYcoord