formatting and removing unused imports