removed unused imports and adjusted formatting