remove all global variable
remove useless comment