remove unused imports and resources