successfully print tree