work on text input