changed to use readline.chomp