remove unused imports and unused methods