finding solution to filter by category