shuffling debugged