correct a typo: n -> p