working accelerometer