modify tree to code code.