similarity, maxsimilarity