fixes unused imports and formatting