add some change to scheduler.c