judge if inputting