logic changes in get_region