small changes
prefixed the global variable