updated to catch the issue of zero instances in a region