why not putting this inside the `with` block?