statistics template fixed