fixed the bug with text input and changed source from argv to user input