parent nodes and child nodes almost working