resetting counters, returns old values