simplify category generation