added standard code for filter