what is `p` (and `g` below)?