changed getline to include ';'