finished display sum and display average