complete priority queue