print tree level