made createMotorCommand static