fixed polarity issue