rewrite quantized size adjustments to run only if necessary
add failsafe around size adjustment