correcting mistake where we took the place from start of chosen indice list instead of global index for the repeat info written out to file