added sign flip when transferring terms to other side