update input method