flow: set position for global variables