Tried different logic for categories