remove unwanted links