pad: make the filter parametric