correcting root mean square