cdr missmatched after indels, some refactoring