check how to make this global