closed loop control function - Search