changed next to nextLine for the scanner