processing the coordinates