updating stats