quickened main loop