transform P_{} to \pi_