added region protection