add the parent reference in the node