updated x & y distance to compensate for orientation