linked nodes at leaves of parents correctly to the roots of the children