linking of nodes