display statistics in div
rewrite statistic calculations