update cpgf to use this instead of extraneous $this