Change all calculating using mean