remove repeated imports and unused ones.