still trying to fix pg problem