fixed duplicate prompt to user