made confidence std::string, TODO: fix history