created main_scheduler