solved empty queues