process and extractUrls method created, better division of functions