correct x and y