updated the control of the arm