half finished version of getline
bit of cleaning