replaced function confirm-list by functions confirm() and list-text()