modified for new polarity dic