change for priority queue