removal of nodes and links