added stats at the end