modified Editdistance  file