IMR_loop