reseting cumulative sums after each epoch