replace by pg