preserve order and collect garbage tables