E0631 Type Mismatch in Closure Fix

Written November 27, 2026 · Tested with Rust 1.99.1 · 24 min read

By the end of this guide
  • The error: the closure's arguments disagree with the bound
  • First fix: change the closure's parameter annotation
  • Second fix: drop the annotation and let the bound infer it
  • Third fix: change the bound when the closure states the design

Written November 27, 2026

Tested with Rust 1.99.1

What this guide is

E0631 is the error for a closure whose argument types disagree with the callable signature it is being used against. When a function accepts a closure through a bound — F: Fn(i32), F: FnMut(String), F: FnOnce(bool) — the bound fixes the argument types the closure will be called with. A closure written with different parameter types, usually because its parameters carry annotations copied from another context, does not satisfy the bound, and the compiler stops at the call with E0631, type mismatch in closure arguments, printing the two signatures side by side: the one the bound expects and the one the closure defines.

The disagreement always has two written sides, so the repairs are a choice about which side is wrong. Change the closure's parameter annotation, when the bound states the design. Drop the annotation entirely, when the bound can infer it — the repair the official page for this error names first. Change the bound and the call inside the function, when the closure states the design and the bound was written against a different plan. Or leave both alone and put an adapter closure between them that converts each argument. The sections below take the shapes in order: the plain mismatch and its three declaration-side repairs, the reference-versus-value form, the iterator-adapter form — where a second error follows the first — the tuple-destructuring form, and the neighboring errors E0593 and E0308, which involve closures and wrong types but are not this one.

The error: the closure's arguments disagree with the bound

This function calls its closure argument with an i32, and the closure passed to it is annotated to take a &str:

Rust
fn f<F: Fn(i32)>(g: F) {
    g(1);
}

fn main() {
    f(|s: &str| {});
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
error[E0631]: type mismatch in closure arguments
 --> main.rs:6:5
  |
6 |     f(|s: &str| {});
  |     ^^---------^^^^
  |     | |
  |     | found signature defined here
  |     expected due to this
  |
  = note: expected closure signature `fn(i32) -> _`
             found closure signature `fn(&str) -> _`
note: required by a bound in `f`
 --> main.rs:1:9
  |
1 | fn f<F: Fn(i32)>(g: F) {
  |         ^^^^^^^ required by this bound in `f`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0631`.

The diagnostic is a comparison of two signatures, and reading it in order settles which repair applies. The note pair states the whole fault: "expected closure signature fn(i32) -> _" — the signature the bound Fn(i32) requires — against "found closure signature fn(&str) -> _" — the signature the closure's annotations define. The span under the call marks the closure as "found signature defined here" and the function name as "expected due to this", and the closing note points at the bound in f that set the expectation. The closure body is never mentioned: an empty body and a long one fail identically, because what is being checked is the signature, not what the closure does with its argument. The same comparison fires for all three callable traits — a bound of FnMut(String) met by a closure annotated |n: i32|, and a bound of FnOnce(bool) met by the same closure, both print E0631 with the expected and found signatures swapped in accordingly — and it fires when the expected signature comes from a Box<dyn Fn(i32)> annotation instead of a generic bound.

First fix: change the closure's parameter annotation

If the bound states the design — the function will call the closure with an i32, and that is the contract — the repair is the annotation on the closure:

Rust
fn f<F: Fn(i32)>(g: F) {
    g(1);
}

fn main() {
    f(|n: i32| println!("got {}", n));
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
$ ./main.bin
got 1

The program prints got 1 and exits with status 0. This is the repair to reach for when the bound belongs to code you do not control — a library function's Fn bound, an iterator adapter's requirement, a callback signature in an API — because the bound is the side that will actually produce the arguments at run time. Whatever the closure body was written to receive, it is the bound's types that arrive.

Second fix: drop the annotation and let the bound infer it

A closure's parameter types do not have to be written at all when the context fixes them. Removing the annotation lets the bound supply the type:

Rust
fn f<F: Fn(i32)>(g: F) {
    g(1);
}

fn main() {
    f(|n| println!("got {}", n));
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
$ ./main.bin
got 1

The program prints got 1 and exits with status 0. This is the resolution the official page for E0631 gives: change the type annotation, or remove it entirely if it can be inferred. Inference is the better default wherever it reaches, because an unannotated parameter cannot drift from the bound — there is no second statement of the type to disagree. Its limit is context: a closure stored in a variable with no expected type, or passed where several signatures are possible, may have nothing to infer from, and then the annotation is doing real work and the first fix is the repair.

Third fix: change the bound when the closure states the design

If the closure is the fixed side — it genuinely works with text, and the function was written against an earlier plan — the repair is on the function's side, in both the bound and the call that has to match it:

Rust
fn f<F: Fn(&str)>(g: F) {
    g("hi");
}

fn main() {
    f(|s: &str| println!("got {}", s));
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
$ ./main.bin
got hi

The program prints got hi and exits with status 0. The check before taking this repair is the function's body: the bound and the call inside the function are one statement of the design, and both move together — changing Fn(i32) to Fn(&str) while the body still calls g(1) only moves the failure inside the function. Where the function is generic over its caller precisely so that callers decide, the bound is usually the truth and this repair is the wrong side; where the function is yours and its bound was copied from a sibling function, the bound is the stale side.

The reference form: a reference where a value is expected, and the reverse

The most common single-character cause of this error is a reference level. A bound of Fn(&i32) calls the closure with a reference; a closure annotated to take the value by copy disagrees, even though the underlying type is the same:

Rust
fn f<F: Fn(&i32)>(g: F) {
    g(&1);
}

fn main() {
    f(|x: i32| {});
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
error[E0631]: type mismatch in closure arguments
 --> main.rs:6:5
  |
6 |     f(|x: i32| {});
  |     ^^--------^^^^
  |     | |
  |     | found signature defined here
  |     expected due to this
  |
  = note: expected closure signature `for<'a> fn(&'a _) -> _`
             found closure signature `fn(_) -> _`
note: required by a bound in `f`
 --> main.rs:1:9
  |
1 | fn f<F: Fn(&i32)>(g: F) {
  |         ^^^^^^^^ required by this bound in `f`
help: consider adjusting the signature so it borrows its argument
  |
6 |     f(|x: &i32| {});
  |           +

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0631`.

Two details in this printing are worth learning. The expected signature is written with a placeholder, for<'a> fn(&'a _) -> _, because the bound's reference carries a lifetime the closure is generic over; the found signature is fn(_) -> _, a value of an unspecified type. And the compiler appends a help that names the repair directly — "consider adjusting the signature so it borrows its argument" — with the one-character edit drawn in. Taking the help is the fix:

Rust
fn f<F: Fn(&i32)>(g: F) {
    g(&1);
}

fn main() {
    f(|x: &i32| println!("got {}", x));
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
$ ./main.bin
got 1

The program prints got 1 and exits with status 0. The reverse direction — a bound of Fn(i32) met by a closure annotated |x: &i32| — is the same E0631, with the help reading "consider adjusting the signature so it does not borrow its argument" and the edit drawn as a removal. A mutability difference at the same level is also this error, not a separate one: a bound of Fn(&mut i32) met by |x: &i32| prints E0631, expected signature for<'a> fn(&'a mut _) -> _. Reference level and mutability are part of the argument type, and the signature comparison treats them exactly as it treats a wholly different type.

The iterator form: the bound belongs to the adapter

In ordinary code this error most often arrives through a method that takes a closure, where the bound is the standard library's and the expected argument type is fixed by what the iterator yields. Iterating over &i32 values and annotating the map closure's parameter as a string reference fails:

Rust
fn main() {
    let v: Vec<i32> = vec![1, 2, 3];
    let out: Vec<String> = v.iter().map(|s: &String| s.clone()).collect();
    println!("{:?}", out);
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
error[E0631]: type mismatch in closure arguments
   --> main.rs:3:37
    |
  3 |     let out: Vec<String> = v.iter().map(|s: &String| s.clone()).collect();
    |                                     ^^^ ------------ found signature defined here
    |                                     |
    |                                     expected due to this
    |
    = note: expected closure signature `fn(&i32) -> _`
               found closure signature `fn(&String) -> _`
note: required by a bound in `map`
   --> /home/droopy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/traits/iterator.rs:834:12
    |
831 |     fn map<B, F>(self, f: F) -> Map<Self, F>
    |        --- required by a bound in this associated function
...
834 |         F: FnMut(Self::Item) -> B,
    |            ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Iterator::map`

error[E0599]: the method `collect` exists for struct `Map<std::slice::Iter<'_, i32>, {closure@main.rs:3:41: 3:53}>`, but its trait bounds were not satisfied
  --> main.rs:3:65
   |
 3 |     let out: Vec<String> = v.iter().map(|s: &String| s.clone()).collect();
   |                                         ------------            ^^^^^^^ method cannot be called due to unsatisfied trait bounds
   |                                         |
   |                                         doesn't satisfy `<_ as FnOnce<(&i32,)>>::Output = _` or `_: FnMut<(&i32,)>`
   |
  ::: /home/droopy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/adapters/map.rs:61:1
   |
61 | pub struct Map<I, F> {
   | -------------------- doesn't satisfy `_: Iterator`
   |
   = note: the following trait bounds were not satisfied:
           `<{closure@main.rs:3:41: 3:53} as FnOnce<(&i32,)>>::Output = _`
           which is required by `Map<std::slice::Iter<'_, i32>, {closure@main.rs:3:41: 3:53}>: Iterator`
           `{closure@main.rs:3:41: 3:53}: FnMut<(&i32,)>`
           which is required by `Map<std::slice::Iter<'_, i32>, {closure@main.rs:3:41: 3:53}>: Iterator`
           `Map<std::slice::Iter<'_, i32>, {closure@main.rs:3:41: 3:53}>: Iterator`
           which is required by `&mut Map<std::slice::Iter<'_, i32>, {closure@main.rs:3:41: 3:53}>: Iterator`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0599, E0631.
For more information about an error, try `rustc --explain E0599`.

This printing teaches two things the plain form does not. The "required by a bound in map" note points into the standard library, at the bound F: FnMut(Self::Item) -> B in Iterator::map — the expected argument type is the iterator's Item, here &i32 because v.iter() yields references. And the E0631 does not arrive alone: because the closure fails the bound, the Map adapter built from it does not implement Iterator, so the chained collect call reports a second error, E0599, method cannot be called due to unsatisfied trait bounds. The E0599 is a consequence, not a second fault — it names the same closure's unsatisfied FnMut bound — and it disappears when the E0631 is fixed. The same pairing appears with filter, whose bound passes a reference to the item, so its expected signature is one reference deeper than the item itself. Reading order matters here: fix the first error in the output, and recompile before reading the rest.

The repair is the first fix in its adapter form: annotate the parameter with the type the iterator actually yields — or drop the annotation — and write the body against that type:

Rust
fn main() {
    let v: Vec<i32> = vec![1, 2, 3];
    let out: Vec<String> = v.iter().map(|n: &i32| n.to_string()).collect();
    println!("{:?}", out);
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
$ ./main.bin
["1", "2", "3"]

The program prints ["1", "2", "3"] and exits with status 0. Both errors are gone, the E0599 with no edit of its own. The expected argument type for any adapter is derivable before compiling: iter() yields references to the elements, into_iter() yields the elements themselves, and the closure for filter receives a reference to what the iterator yields. The same shape governs the other closure-taking methods — Option::map and Result::map pass the wrapped value, for_each passes the item, sort_by passes two references to the element — and a wrong annotation against any of them is this same E0631 with the method's bound in the closing note.

The tuple form: one argument, destructured at the wrong types

A closure that destructures a tuple in its parameter list still takes one argument — the tuple — and the signature comparison runs on the tuple type as a whole. A bound that passes (i32, i32) met by a pattern annotated (String, String) fails:

Rust
fn f<F: Fn((i32, i32))>(g: F) {
    g((1, 2));
}

fn main() {
    f(|(a, b): (String, String)| {});
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
error[E0631]: type mismatch in closure arguments
 --> main.rs:6:5
  |
6 |     f(|(a, b): (String, String)| {});
  |     ^^--------------------------^^^^
  |     | |
  |     | found signature defined here
  |     expected due to this
  |
  = note: expected closure signature `fn((i32, i32)) -> _`
             found closure signature `fn((String, String)) -> _`
note: required by a bound in `f`
 --> main.rs:1:9
  |
1 | fn f<F: Fn((i32, i32))>(g: F) {
  |         ^^^^^^^^^^^^^^ required by this bound in `f`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0631`.

The note pair is the tell: the expected and found signatures each show a single parenthesized argument, fn((i32, i32)) -> _ against fn((String, String)) -> _. The destructuring pattern does not split the argument for the check; the tuple type is compared whole, and any element disagreement fails the whole signature. The repair annotates the pattern with the tuple type the bound passes:

Rust
fn f<F: Fn((i32, i32))>(g: F) {
    g((1, 2));
}

fn main() {
    f(|(a, b): (i32, i32)| println!("{} {}", a, b));
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
$ ./main.bin
1 2

The program prints 1 2 and exits with status 0. This form is the one that arises with iterators over pairs — enumerate, zipped iterators, map entries — where the closure pattern is written from the element types the author expected rather than the tuple the iterator yields, and the expected signature in the note is the ground truth about what actually arrives.

When neither side can move: wrap the closure in an adapter

A closure stored in a variable carries its signature with it, and passing that variable to a function whose bound expects different argument types is the same E0631 — with the "found signature defined here" span pointing at the variable's definition rather than at the call. When the stored closure is the fixed side and the bound is library code, neither annotation is yours to change at the meeting point, and the repair is a new closure at the call that converts:

Rust
fn apply<F: Fn(u32)>(f: F) {
    f(7);
}

fn main() {
    let g = |s: String| println!("{}", s);
    apply(|n: u32| g(n.to_string()));
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
$ ./main.bin
7

The program prints 7 and exits with status 0. The compiler itself suggests this shape for the stored-closure form, with a help that offers to wrap the function in a closure at the call. The adapter is a real closure with its own signature — fn(u32) -> _ here — which satisfies the bound, and its body performs the conversion the two signatures disagree about: formatting, parsing, borrowing, or dereferencing. This is also the repair when the disagreement is a reference level that neither side states wrongly, such as a bound that passes values to a closure that needs to work with their text form.

Neighboring error: the wrong number of arguments is E0593

E0631 compares the types of arguments at the same positions. A closure that takes a different number of arguments than the bound calls it with never reaches that comparison:

Rust
fn f<F: Fn(i32, i32)>(g: F) {
    g(1, 2);
}

fn main() {
    f(|x: i32| {});
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
error[E0593]: closure is expected to take 2 arguments, but it takes 1 argument
 --> main.rs:6:5
  |
6 |     f(|x: i32| {});
  |     ^^--------^^^^
  |     | |
  |     | takes 1 argument
  |     expected closure that takes 2 arguments

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0593`.

That is E0593: the header counts arguments instead of comparing signatures, there is no expected/found signature note pair, and no note points at a bound — the arity is wrong before any type is examined. The split is exact in both directions: too few parameters and too many parameters are both E0593, while the right count with any wrong type — including two parameters of the right types in the wrong order, which compares fn(i32, String) against fn(String, i32) — is E0631. The repairs differ accordingly: E0593 is repaired by adding or removing a parameter, and no annotation edit changes a count.

Neighboring errors: function pointers, direct calls, and return types are E0308

Three closure-adjacent mismatches that feel like this error land on E0308, mismatched types, because none of them is a closure being checked against an Fn bound. The first is a function pointer parameter. A parameter declared cb: fn(i32) is not a bound; it is a concrete type, and passing a closure of a different signature to it is a plain type mismatch:

Rust
fn takes(cb: fn(i32)) {
    cb(1);
}

fn main() {
    takes(|s: &str| {});
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
error[E0308]: mismatched types
 --> main.rs:6:11
  |
6 |     takes(|s: &str| {});
  |     ----- ^^^^^^^^^^^^ expected fn pointer, found closure
  |     |
  |     arguments to this function are incorrect
  |
  = note: expected fn pointer `fn(i32)`
                found closure `{closure@main.rs:6:11: 6:20}`
  = note: closure has signature: `for<'a> fn(&'a str)`
note: function defined here
 --> main.rs:1:4
  |
1 | fn takes(cb: fn(i32)) {
  |    ^^^^^ -----------

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.

The label says "expected fn pointer, found closure", and the notes compare types, not signatures under a bound. Passing a named function of the wrong signature to the same parameter — a function item fn(&str) where fn(i32) is expected — is likewise E0308, "expected fn pointer, found fn item". Function items and closures both become E0631 only when they are checked against an Fn, FnMut, or FnOnce bound; against a declared fn pointer type, the check is an ordinary type equality and the code is E0308.

The second is calling a closure directly with a value of the wrong type. No bound is involved — the closure's own annotation is the only signature — so the call is an ordinary argument mismatch:

Rust
fn main() {
    let c = |s: &str| println!("{}", s);
    c(42);
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
error[E0308]: mismatched types
 --> main.rs:3:7
  |
3 |     c(42);
  |     - ^^ expected `&str`, found integer
  |     |
  |     arguments to this function are incorrect
  |
note: closure parameter defined here
 --> main.rs:2:14
  |
2 |     let c = |s: &str| println!("{}", s);
  |              ^^^^^^^

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.

The header is "mismatched types", the two types are stated directly — expected &str, found integer — and the note points back at the closure parameter definition. E0631 requires the two-signature comparison that only a bound produces; a direct call has one signature and one value, and a disagreement between them is E0308.

The third is a closure whose arguments match and whose return type does not. The signature comparison for E0631 covers the arguments; the return type is checked separately, as a mismatch between the closure body and the expected return:

Rust
fn f<F: Fn(i32) -> String>(g: F) {
    println!("{}", g(1));
}

fn main() {
    f(|n: i32| n);
}
Terminal
$ rustc --edition 2021 main.rs -o main.bin
error[E0308]: mismatched types
 --> main.rs:6:16
  |
6 |     f(|n: i32| n);
  |                ^ expected `String`, found `i32`
  |
help: try using a conversion method
  |
6 |     f(|n: i32| n.to_string());
  |                 ++++++++++++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.

The span underlines the closure's body expression, not its parameter list, and the help proposes the conversion — n.to_string() — that the repair consists of. So the position of the underline is a reliable first read: under the parameters or the whole closure at a bound call, suspect E0631; under the value passed to a direct call or under the closure's body expression, the error is E0308 and the repair is a conversion at that expression.

The exact rule: the bound fixes the signature, and the closure's annotations must equal it

The official page for E0631 defines the fault in one sentence: this error indicates a type mismatch in closure arguments. Its erroneous example is the plain form in this guide — a function accepting a closure that takes an i32 argument, passed a closure with a &str argument — and its stated resolution is to change the type annotation, or remove it entirely if it can be inferred. The page carries no note retiring or replacing this code; E0631 is the current code for this fault.

The mechanism is the callable traits. A bound such as F: Fn(i32) requires the closure to be callable with one i32 argument, and a closure's signature is fixed by its parameter annotations where they are written — the Reference's page on closure types describes a closure as an anonymous function type whose signature is part of its type. Where the annotation and the bound disagree, there is no coercion between closure signatures for the compiler to apply: closures of different signatures are different types, and the bound is not satisfied. That is why the diagnostic is a signature comparison rather than a conversion suggestion, and why dropping the annotation works — an unannotated parameter takes its type from the bound itself, so the two statements of the signature become one. The Book's chapter on closures describes the same inference from the other side: the compiler infers each closure's parameter and return types from how the closure is used, and an annotation is a deliberate override of that inference, which is exactly the statement that can disagree with a bound.

The fixes, ranked

  • First, drop the parameter annotations and let the bound infer them, when the closure is written at the call site and the context fixes one signature. There is then only one statement of the argument types, and this class of disagreement cannot recur at that call.
  • Second, change the closure's parameter annotation to the bound's types, when the annotation must stay — a stored closure, a signature that has to be documented, a context with nothing to infer from. Read the expected signature in the diagnostic's note and annotate exactly that, reference level and mutability included.
  • Third, wrap the closure in an adapter at the call, when neither signature is yours to change — a stored closure or function against a library bound — and convert each argument inside the adapter.
  • Fourth, change the bound, when the function is yours and its bound was written against a different plan than the closure implements. Move the call inside the function with it; the two are one statement of the design.

Which fix for which cause

  • A generic function bounds F: Fn(i32) and the closure at the call is annotated with another type: E0631, note pair "expected closure signature fn(i32) -> _" against the found signature, closing note at the bound. Drop the annotation, or change it to the expected signature.
  • The bound is FnMut or FnOnce instead of Fn — an iterator adapter, a Result::map, a one-shot callback: the same E0631 and the same repairs. The trait in the bound does not change the argument check.
  • The expected signature shows a reference and the found shows a value, or the reverse, or the expected shows &mut where the found shows &: E0631 at the reference level, with a help that draws the one-character edit. Adjust the annotation's reference level.
  • An adapter method reports E0631 and a chained method reports E0599 in the same output: one fault — the closure's annotation disagrees with the adapter's bound, and the adapter consequently does not implement Iterator. Fix the annotation and recompile before reading the E0599.
  • A tuple parameter destructures at types other than the bound's tuple: E0631, with the expected and found signatures each showing one parenthesized tuple argument. Annotate the pattern with the bound's tuple type.
  • A stored closure is passed to a bound expecting different argument types, with the found-signature span at the closure's definition: E0631 at a distance. Wrap it in an adapter closure at the call and convert.
  • The closure takes more or fewer arguments than the bound calls it with: E0593, header counting the arguments, no signature note pair. Add or remove a parameter.
  • A closure or a named function is passed where a parameter declares an fn pointer type of a different signature: E0308, "expected fn pointer, found closure" or "found fn item". Change the closure or function to the pointer's signature, or change the parameter to an Fn bound if callers should decide.
  • A closure is called directly with a value of the wrong type: E0308 at the call, expected and found stated directly. Convert the value or correct the annotation — there is no bound to satisfy.
  • The closure's arguments match the bound and its body returns the wrong type: E0308 under the body expression. Convert the returned value.

Checklist

  • Read the note pair first. "Expected closure signature" against "found closure signature" is E0631, and the expected side is the ground truth about what will actually be passed. A header that counts arguments is E0593; a header that says "mismatched types" is E0308.
  • Find the bound before editing. The closing note, "required by a bound in", names the function or method that set the expected signature — for adapter methods it points into the standard library, and the expected argument type is the iterator's item, with the reference level the adapter adds.
  • Decide which side owns the truth. The bound is the design when it belongs to library code or states what the function will pass at run time; the closure is the design when the function is yours and its bound was copied or written before the closure settled.
  • Prefer inference where it reaches. An annotation that repeats the bound is a second statement of the same fact and the only part of the closure that can drift from it.
  • Check the reference level as part of the type. i32, &i32, and &mut i32 are three different argument types for this check, and the compiler's help draws the exact edit when that is the whole fault.
  • Fix the first error in a chain before reading the rest. An E0631 against an adapter makes the adapter fail its Iterator implementation, and the E0599 that follows a chained call is the same fault seen from downstream.

Sources

Keep Exploring