get x and y