generator worked