connect all nodes at the same level