add foreachPegName