adding mantiuk residuals filtering