updated category filtering