added code_name for tree and random code_name generation