changed checking a input number can be set or not