implmenting collectUrls