added max catcnt to minImpurity