change to test boundary case.
add assign function to scheduler.