reset counters on end