refactor region setting
Clean up code