slight refactor in handling colors