fixed bug to display user input