generator works