put back in region range checking