control loop mechanism