submit edit distance