new inputfunction