added a function to clear the schedule