working closed loop