changes to the indel count if statement