add trace finish before switching polarity