=add member functions set_local and set_global