priority scheduler working
removed commented out section