add lattice and bd