edit distance based strategy