check before editting PriorityScheduler.java