let calculateSearchPathsSize more accurate, modify logics