made sure to use tools::stoi instead of std::stoi (ambiguity)