refactoring color