remove unused imports and fields