get the nodes in every level