trees are written automaticly after process().