slight mod to ingredient category logic