updated peg class