changing tree API

--HG--
branch : develop