Update schedule.c

cleanup