added CheckQuality