shuffle back in function