edited PriorityQueueExtract