fixed a flipped sign in rmdup