decomment main loop