accelerometer work