check for invalid regions