removes unused columns