foo and p