changing statistics collector singleton to Stats