update statistic functions