set state.idle