add class of edit distance