now computing RMS amplitudes