changes in case_filter method