added calculation of statistical values and display them