correct the accelerometer