when it's apt to use global