working on history table