generator almost finished