updating generator