fixed what to do if input is wrong