introduce confirmation logic