wrote average over time thing. neat.