made the confirm method