update bug of function getInput2