better calculate unused imports