print stats at the end