close loop done