remove unused imports and code format