Update PGF.cpp