work with nested arrays as children