adding a resetSchedule method