used prompt and confirm