add a diff subsitution pattern.