update memo syntax
add edit distance