corrects input determination