tool fro print tree.