trying to refactor stats into something more reusable