begin tree visitor