The bug "groups list isn't set in empty" is fixed
make repetitions more object-oriented