working on the motor controller