updating the scheduler