created a recursive part fetcher for categories