added fourth RMS detection constant