improve link removal