edit pg file