first linking a child, then forming nodes