added levenshtein distance