updated CheckQuality numvalues finding duplicates