locally commit the global variable change