quantization/rounding fixes