add stats to template