move global before "declaration"