add option for resampling filter