got tree printing working