prioirity queues working