trying to get global to work