just add some code to shuffle.