minor changes such as save the count table