store reference to parent with all nodes