history table

history table functions