edit distance started