add p2 and p3