refactor varname