why make location global?