made the transaction atomic