fixes tilt logic