move threshold back to scoreDuplicates