2006 dodge ram 5.7 hemi

2006-Dodge-Rammy 2006 dodge truck 5.7 hemi surges. the rpm gauge rises and falls what would cause this . replaced egr valve already