improve assertion validator