improved merge logics for colors