corrected the cout << current->data;