add print tree method