new PPS code implemented for polarization