added updating of Pf