redoing accelerometer stuff