code for pg