removes deprecated links