modify to use PEG