removed window for global variable