code tree struct