fixed printout/averaging