check for input