add edit-distance