take insertions and deletions into account