removing unused links