some change to accelerometer and new box