transactions example fixed