add warning when no category