lattice snippets