added pretty_print to tree