added cat filtering