add a new function which is about the schedule