update pgm