move case statements to lookup tables