lattice replacement