start building peg generator