step 2: main loop ready