update code tree