modified the url fetching in the removal process to sort arrays properly