trying again to fix pg error