made priority queue part