first changes to pgm2 file