add exception catch for stoi