modified edit distance  file