The current in the motor generates