made checkInput return