updates the schedule