remove useless links