added a state object