array of queues working