remove mean before calculating stas