reverse input method