added lookup table for performance