optimizate assert