converted queue and crawled into set