replace deprecated unwrap with into_inner