added shuffle-sum stuff