added pg properly