return value of tree