ups, fix  input check again