add default value to state.