filter categories, tidy of data handling