updating lookup table.