debug optimized min