added ttree extractor