now using a global scope