updated stats generator