correct calibration of device orientation