refactoring varname for color