update statedata