changed last plot from totals to averages across all intervals.