adjusting for configurable signal polarity