shuffling the lattice