change "endpoint" to "region"