added more key id's & void pointer to lattice structs