run stats at the end