update to the motor class