swapped x and y and reformatted