updated to add children with parent