emission control causing rough idle?

the EGR or exhaust gas recirculation valve is designed to only open under load in order to allow a small amount of exhaust into the combustion chamber in order to lessen the formation of nitrogen oxide NOx, when they get dirty soot can build up on the valve preventing it from closing completely and causing a rough idle,
if it's not to bad you may be able to take it off and clean it