finish quantization