modify lattice api