add the acceleration and deseleration to simulation