fix the license, rename a variable name