const for lattice_connect