simutaneously update for P and W V