added repeat count