added return value for transaction