urls.pl remove subs for sorting and add within foreach