generator works fine now