transaction history bug fixed
rubocopped helpers