motor command working