update mean.cpp