added user input and prompt