lattice type check + unified lattice init