remove unused imports & maxDiff