dealing with repetition more sma