updated: pMinusOne.R