create a state upate