modify the input operation to fit more regular situation