made mesh arithmetic operate in-place