edit distance now accounts for length difference