update crawl function