making shuffling and repeating