write pg signature