computation of lookup table