set up the filter basic framwork