update filter for classes