two density quantize