created better key for global state