how to use global