swapped x and y in get area