removes global variable