fixed transaction sentence logic