update Scheduler algorithm