had_loop.R implementation