modify print tree