changed data from cumulative to average