added linear interpolation of filter values, in order to have smoother transition