process input