modify logic to identify ingredients categories