made set_motor and api call