added accelerometer to routine