fixed transaction creation