removing bad links