for measuring coordinates of points