fix the timing for accelerometer