statistic and log function