maxRepeat