add some statistics.