fix look-up tables