 on line 117 and 106 throws errors unless explicitly cast from string to c string. I added .c_str to each now it works