factor out postprocessing filters