still debuging on the crawling algorithm