refinement: global scope generation.