remove unnecessary tables