evaluating trees