averaging time measurements added