added crawl function