rm unecessary links