reset table when redoing optimization
TODO for edge cases