more cohesive get_x_y method