removing unnsessary links