trying to fix pg isssue