added delete and update peg