generator scope