adding parameter to control width of discontinuity filter