rewriting quantization