updating stats script