finished getInput()