checking for null region