added lattice analysis