be smarter when setting region