quantization method added