resetting the counter