change else part in main loop