figure out pg issue