modify the motion