updated to use queues