new functinality to split on colors