box size estimated and optimized