rewrote table