changed global variable