now displays subcategories correctly