improve assertions.