refactoring get_category_symbol()