switch to lookup table and u16