adding categories to logic