first part of the accelerometer