changed the propmt to a confirm