updated r2 and p