new optimized ensure