modify scheduler.