add return value to the tree