access history in one go without creating a data frame
adding collapse to history-creating paste