Update teh_code