update closed loop