updated stats generation