adding if case for sched check box