update output of tree