global variable will set zero for defaule value, local variable will not sure the value by last filled.