calculate average
testing