fixed a constraint on p.