clean up accelrometer implementation