edit pgm