removing unecessary links