removes extra columns from table