added uniform color reduction