using reflection for motor