made changes to global variable