deal with empty queues