these 2 lines of `let` should be put in the block which calls them only