reverse the y axis calculations
change the orientation