work until lattice generator (included)