update scheduling algorithm