Reshuffling code