two sided diffing & output filter