added oscillator detuning