reimplemented optimized version of pppprocessing and early parity