finished priority queue