added error pg