lookup tables are ugly