index
replace instance repeat index: repeat