I think tree.name might be more correct.