added a new function to separate the urls to download.