begin tree parsing