history table setup.