corrected input method