grouping history items. maybe the best thing