commiting accelerometer code