removal of bad links