switched from cin to getline