improved quantization