adapt tree module