fixed print tree