working on text input