adding random_region method