update filter fn