impl checkColor