modify multi thread to fetch the url