PLS and PCR functions