changing colors comparing method