clean global variable