added function to reset stats.