improving the behavior of calculation of average