added polarity frame to poalrity