small cleanup in assertions