fixed average and format number display