some minor changes for repairing accelerometer