fixed global scope