working on transactions
it seems that  synchronisation problems came
since  this point I have to be far more carefull with it