uses lookup table for catgroy