repair_loop
