format history transactions