Lights dimming and brightening

I just upgraded my alternator last night with a later square back one using the same electronic regulator I had. I grounded the 2nd field terminal at the alternator. It now charges better, the headlights don't flicker and the output voltage at the alternator is more constant. Since the alternator was just lying around anyway this was a free upgrade so I tried it and it worked great!