now the lattice will be correct printed into the pdf file