remove global state object