re-implement createFrequentItemsTable