removed accelometer code