switch from cin to getline