adding color lookup functionality