limit scope, please move into the `if (region)` block.