refactoring colorarrays