refactoring handling deletions and added DNA support