improve assertion.