removed unused imports and formatted code