schedule.c updated