analyze by category