updated to ask for user input