refactor color array