update
merged motor.c