fixed typo in confirmation function