shuffling samples before loading