update lookup generation code