modified tree extraction
modified