isn't this duplicating regions logic defined elsewhere?