Overriding of the S matrix in path notation