shuffling the data before batching