minimum tree size checking