added third RMS detection constant