lookup table cleanup