filter keys, values, classes