generally working filter system for categories