not sure you need this here, the inner err will be a new variable shadowing the outer one.