this variable should be at the scope of function or in the global scope in order to make it available for the rest of function within the module
r- for this change