acceleration and deceleration working