fix for duplicate value in lookup table (now gets by type and value), todo: need to consider hard coding of lookup type in code