add code to keep log of user input