check for null states