priority scheduling all done