generator regulation