loop length + quantization