added maxPriorityQueue