remove unnecessary urls