update statistic data properly