remove extra headers and unused columns