add tilt-compensation for mag