correctly handle regions