code reshuffle