changes on p1 and p2