set counter = 0