removing unused imports and code