update stats script