updated sched.c