added reinsert functionality on failed confirmation