add add_local_variable and add_global_variable in util.c