add comment on main loop