add unique key for lattice table