updated mean computation