implemented stats resetin and printing