more efficient clear table