sample impl. of prefilters