when it's apt to use globals