updated p2 and p3