remove unnecessary state.