adding links to nodes