how does the egr work