removing use of pg