changed times vector so no intermediate values are recorded (slight speedup)