implementing confirmation