added clear for cases where 0 schedules are generated