migrate x and y to be row and column