merged tree from pcasciano