slight refactoring of StatsDisplay