history is working
flipped the history arrays