change `map` to use `let`