amended to ask for user input