changes globals instance to statics class