updated transaction formatter