removing unnecessary tables