refactor tx history to statement