updated lookup table generator