tree directive