queues: clean up in priority queue
queue: code cleanup in queue