word and phrase input working