added constrain to polarity