priority queue complete