note some unuseful sentence
change a for loop and fixed a bug about  if url is wrong the input lost