edit distance metric added