make updatePV fn alone