finish reshuffling kernel