more work on text input