added sign flip when term moved to opposite side