changed to global