generator correction