print tree