added reshuffle feature