write pg